package com.example.qxfw.dysjrh.controller;
import com.example.qxfw.common.SysResult;
import com.example.qxfw.dysjrh.entity.SatelliteData;
import com.example.qxfw.dysjrh.service.SatelliteService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wzt
 * @date 2024/12/13
 */

@RestController
@RequiredArgsConstructor
@RequestMapping("/satellite")
public class SatelliteController {
    private final SatelliteService satelliteService;
    @GetMapping("/getSatelliteData")
    public SysResult getSateData(SatelliteData satellitedata){
        return SysResult.success(satelliteService.getSatelliteData(satellitedata));
    }

}
